﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using WebApplication1.Models;

namespace WebApplication1.Controllers
{
    public class HomeController : Controller
    {
        private readonly List<Employee> employees = new List<Employee>()
        {
            new Employee(){ Id=1,EmployeeName="zhangsan1" },
             new Employee(){ Id=1,EmployeeName="zhangsan2" },
              new Employee(){ Id=1,EmployeeName="zhangsan3" },
               new Employee(){ Id=1,EmployeeName="zhangsan4" },
        };

        public HomeController()
        {

        }

        public IActionResult Index()
        {
            return View();
        }

        public IActionResult Test()
        {
            return View(employees);
        }
    }
}
